
package org.argeproje.resim.proc.data;

public class Const2DArrayDA extends Data {
	public Const2DArrayDA(float[][] array){
		_floatArray = array;
		setDataType(Data.FLOAT);
	}
	public Const2DArrayDA(double[][] array){
		_doubleArray = array;
		setDataType(Data.DOUBLE);
	}
	public Const2DArrayDA(int[][] array){
		_intArray = array;
		setDataType(Data.INT);
	}
    protected float[][] _floatArray;
    protected double[][] _doubleArray;
    protected int[][] _intArray;
    protected int[][] getIntArray(){
    	return _intArray;
    }
    protected float[][] getFloatArray(){
    	return _floatArray;
    }
    protected double[][] getDoubleArray(){
    	return _doubleArray;
    }
    protected int getIntValue(int row, int col){
    	return _intArray[row][col];
    }
    protected void setValue(int row, int col, int value){
    	_intArray[row][col] = value;
    }
    protected float getFloatValue(int row, int col){
    	return _floatArray[row][col];
    }
    protected void setValue(int row, int col, float value){
    	_floatArray[row][col] = value;
    }
    protected double getDoubleValue(int row, int col){
    	return _doubleArray[row][col];
    }
    protected void setValue(int row, int col, double value){
    	_doubleArray[row][col] = value;
    }
}
